package com.ihealthway.all.commons;

/**
 * Design a constants class use for all of constant parameter in site
 *
 * @author 凡梦星尘(elkan1788@gmail.com)
 */
public class Constants {

    /**
     * Upload file related parameters
     */
    public static final String UPLOAD_ATTACHMENT_SAVE_PATH = "attachments_save_path";
    public static final String SHOP_AD_FOLDER = "shop_index_ad_folder";
    public static final String GOODS_IMG_FOLDER = "shop_goods_img_folder";
    public static final String KE_ATTACHMENT_FOLDER = "ke_attachment_folder";
    public static final String UM_ATTACHMENT_IMG_FOLDER = "um_up_img_folder";
    public static final String REWARD_IMG_FOLDER = "reward_img_folder";

    public static final String SHOP_AD_CTX_PATH = "/commons/imgView.do?type=ad&fileName=";
    public static final String GOODS_IMG_CTX_PATH = "/commons/imgView.do?type=goods&fileName=";
    public static final String KE_AT_CTX_PATH = "/commons/imgView.do?type=ke&fileName=";
    public static final String UM_AT_CTX_PATH = "/commons/imgView.do?type=um&fileName=";
    public static final String RWD_IMG_CTX_PATH = "/commons/imgView.do?type=rwd&fileName=";

    /**
     * Forward path parameter name
     */
    public static final String FORWARD_PATH = "forwardPath";
    public static final String SYS_ERROR = "system error";
    public static final String NOT_FOUND = "not found";

    /**
     * Session names
     */
    public static final String ADMIN_LOGIN_SESSION = "adminLoginSession";
    public static final String WECHAT_LOGIN_SESSION = "wechatLoginSession";
    public static final String WECHAT_CODE_SESSION = "wechatCodeSession";

    /**
     * Operate module and type
     */
    public static final String MODULE_WECHAT = "wechat";
    public static final String MODULE_SYSTEM = "system";
    public static final String MODULE_SHOP = "shop";
    public static final String MODULE_USER = "user";
    
    public static final String OPERATE_TYPE_ADD = "add";
    public static final String OPERATE_TYPE_UPDATE = "update";
    public static final String OPERATE_TYPE_DELETE = "delete";
    public static final String OPERATE_TYPE_QUERY = "query";
    
    public static final String DW_SYNC_ADD_DATA_TYPE = "A";
    public static final String DW_SYNC_UPDATE_DATA_TYPE = "U";
}
